package prototype;

/**
 * @author : DuJiabao
 * @Date : 2021/3/1 22:04
 * @Project : design-pattern
 * @File : null.java
 * @Desc :
 */
public class Sheep implements Cloneable {
  private String name;

  public Sheep() {
  }

  public Sheep(String name) {
    this.name = name;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  @Override
  public String toString() {
    return "Sheep{" +
            "name='" + name + '\'' +
            '}';
  }

  @Override
  public Object clone() throws CloneNotSupportedException {
    return super.clone();
  }
}
